home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / menu / kwmenu10.zip / KWKEY.DOC < prev    next >
Text File  |  1992-01-10  |  5KB  |  136 lines

  1. This document describes how to use the utility program KWKEY that is
  2. provided with KWMENU.  Both KWMENU and KWKEY are Copyright (C) 1991 by
  3. KeenWare.  ALL RIGHTS RESERVED.  Refer to KWMENU.DOC for licensing
  4. information.
  5.  
  6. KWKEY is a simple utility that enables you to preload keystrokes into
  7. the keyboard buffer.  It is especially useful in batch files, and within
  8. the 'Command String' field in KWMENU, where it can be used to fake input
  9. to another program.  For example, if you have one of those annoying
  10. programs that requires you to "Hit any key to begin," you can use KWKEY
  11. within a batch file (or a KWMENU 'Command String') to fake a key to that
  12. program.  When the batch file loads the program, the faked keystoke is
  13. interpreted just as if you had typed it yourself.
  14.  
  15. For example, say you want to run a program named PROG that requires you
  16. to "Press Y to Begin."  Your batch file to fake an entry of 'Y' to PROG
  17. would be
  18.  
  19.           KWKEY Y
  20.           PROG
  21.  
  22. Similarly, to run PROG from within KWMENU, you would use the following
  23. simple 'Command String':
  24.  
  25.           KWKEY Y,PROG
  26.  
  27. KWKEY can also fake CTRL and ALT key combinations.  The table below
  28. lists the keystrokes that have been shown by testing with various
  29. programs to be "fake-able" by KWKEY.  Other keystroke fakes are probably
  30. also possible.  No attempt has been made to list all possible keystrokes
  31. that might be faked with KWKEY, since KWKEY was written primarily to
  32. serve as a sample program for KWMENU.  No attempt has been made to make
  33. it superior to the many other key-faking programs that are available in
  34. the marketplace.  We do believe though that you will find it a useful
  35. supplement to your other utility programs.
  36.  
  37. KWKEY can pass more than one keystroke at a time to a program.  For
  38. example, to pass a keystroke sequence of F1, F2, and ENTER to a program,
  39. you could use the following batch file:
  40.  
  41.           KWKEY ?059?060#13
  42.           PROG
  43.  
  44. KWKEY does have some limitations, as do the majority of existing
  45. key-faking programs.  For example, it will not accept more than 15
  46. keystroke codes at once.  That is, if you use
  47.  
  48.           KWKEY 123451234511234567
  49.  
  50. it would pass all the keys except the 6 and the 7.  Additionally, KWKEY
  51. will not work on some programs, particularly those that are designed to
  52. clear the keyboard buffer before accepting an entry.  For example,
  53. KWMENU is designed to clear the keyboard buffer out before it accepts a
  54. keystroke for whcih program you want to run.  (This is done to prevent
  55. an inadvertent keystroke from running a program from KWMENU when KWMENU
  56. is started up.)  However, there are a very large number of programs that
  57. will accept faked keystrokes, and KWKEY should work well on those.
  58.  
  59.  
  60.  
  61.  
  62.  
  63. KEY      CODE     SHIFT    CTRL       ALT
  64.  
  65. a        a        A        #01        ?030
  66. b        b        B        #02        ?048
  67. c        c        C        #03        ?046
  68. d        d        D        #04        ?032
  69. e        e        E        #05        ?018
  70. f        f        F        #06        ?033
  71. g        g        G        #07        ?034
  72. h        h        H        #08        ?035
  73. i        i        I        #09        ?023
  74. j        j        J        #10        ?036
  75. k        k        K        #11        ?037
  76. l        l        L        #12        ?038
  77. m        m        M        #13        ?050
  78. n        n        N        #14        ?049
  79. o        o        O        #15        ?024
  80. p        p        P        #16        ?025
  81. q        q        Q        #17        ?016
  82. r        r        R        #18        ?019
  83. s        s        S        #19        ?031
  84. t        t        T        #20        ?020
  85. u        u        U        #21        ?022
  86. v        v        V        #22        ?047
  87. w        w        W        #23        ?017
  88. x        x        X        #24        ?045
  89. y        y        Y        #25        ?021
  90. z        z        Z        #26        ?044
  91.  
  92. 1        1        !        ---        ?120
  93. 2        2        @        ---        ?121
  94. 3        3        ---      ---        ?122
  95. 4        4        $        ---        ?123
  96. 5        5        %        ---        ?124
  97. 6        6        ^        ---        ?125
  98. 7        7        &        ---        ?126
  99. 8        8        *        ---        ?127
  100. 9        9        (        ---        ?128
  101. 0        0        )        ---        ?129
  102.  
  103. F1       ?059     ?084     ?094       ?104
  104. F2       ?060     ?085     ?095       ?105
  105. F3       ?061     ?086     ?096       ?106
  106. F4       ?062     ?087     ?097       ?107
  107. F5       ?063     ?088     ?098       ?108
  108. F6       ?064     ?089     ?099       ?109
  109. F7       ?065     ?090     ?100       ?110
  110. F8       ?066     ?091     ?101       ?111
  111. F9       ?067     ?092     ?102       ?112
  112. F10      ?068     ?093     ?103       ?113
  113.  
  114. ENTER    #13
  115. TAB      #09
  116. ESC      #27
  117. SPACE    #20
  118.  
  119. MINUS    -
  120. PLUS     +
  121. EQUALS   =
  122. /        /
  123.  
  124. UP       ?072
  125. DOWN     ?080
  126. LEFT     ?075
  127. RIGHT    ?077
  128.  
  129. PGUP     ?073
  130. PGDN     ?081
  131. HOME     ?071
  132. END      ?079
  133.  
  134. INS      ?082
  135. DEL      ?083
  136.